home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 2003 September / PC Answers September 2003.iso / Software / trial / MonitorIT 5.2.06 / monitorit_fullsetup.exe / data1.cab / Rpm / ScheduleMonitoring.asp < prev    next >
Encoding:
Text File  |  2003-06-24  |  55.4 KB  |  1,274 lines

  1. <html>
  2.  
  3. <head>
  4.  
  5. <title>Schedule CounterWatch Monitoring</title>
  6. <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
  7.  
  8. <style type="text/css"> 
  9. .GTabBox {  height : 400; width : 630; border: none; background-color : activeborder }
  10.  
  11. .PopUpBox { background-color:activeborder; position:absolute; margin:0; padding:0; border : solid thin; }
  12. .PopUpBox { border-top-color : #E0E0E0; border-left-color : #E0E0E0; border-bottom-color : #555555; border-right-color : #555555 }
  13.  
  14. .DetailsTextBox { height : 0px; width : 0px; background-color: white; color: infotext; cursor : hand }
  15. .DetailsTextBox { border-style : solid; border-width : thin; overflow : clip}
  16. .DetailsTextBox { border-top-color : graytext; border-left-color : graytext; border-bottom-color : white; border-right-color : white}
  17.  
  18. .RptStatusTextBox { height : 275px; width : 560px; background-color: white; color: infotext; }
  19. .RptStatusTextBox { border-style : solid; border-width : thin; overflow : scroll}
  20. .RptStatusTextBox { border-top-color : graytext; border-left-color : graytext; border-bottom-color : white; border-right-color : white}
  21. </style>
  22. </head>
  23.  
  24. <body class="bodyc" language="JavaScript" RPMHostIP="!BreakoutBot:MonitorIP!" RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" BOBDone="!BreakoutBot:Done!" onload="top.banner.savePageCoord(event,document.body,'SchedMonitoring'); SR_Init()" onunload="DiscoRpmCC_ScR()" onresize="processSizeChange()" onclick="checkClick()" onkeydown="processBSP()">
  25.  
  26. <script LANGUAGE="JavaScript">
  27. <!--
  28.  
  29. var    AR_AnlID = ""; // SA Id 
  30. var    AR_CompIDArray = ""; // Computer Id Array
  31. var    DtbState = "0"; // Details Text Box state, "0"=closed, "1"=opened
  32. var    DurState = "0"; // Duration state, "0"=closed, "1"=opened
  33. var   DetailsTitle_Desc = "Report Description";
  34. var   DetailsTitle_Eval = "Evaluation Name / Description";
  35. var   DetailsTitle_Comp = "For the Following Groups/Computers:";
  36. var    Lb = "<BR>"; // Line break
  37. var    CDUnits = 0; // Duration Units
  38. var     CDCount = 0; // Duration Count
  39. var    SchedRptLupRecCount = 0; // Scheduled Report Lookup record Counter
  40. var     SchedReportRecLength = 0; // Schedule Report Store Record length
  41. var    SchedReptSelIdx = 0; // Current Index for Selected Scheduled Report Store
  42. var    InProcArray = new Array("Scheduled","In Process","Completed");
  43. var      iocomplete = false; // initial io for Reports, Sa, Groups, Computers is complete?
  44. var    cur_sxid = null; // ID of RS Line that is Selected
  45. var    GenButtonsLoaded = true;
  46. var    SDeleted=3; // Deleted Status Change value
  47. var    Tid = null;
  48. var   ignoreDBChangeEvent = false;
  49. var LastReportName = "";
  50. var   AR_CurSchedRptStoreArr = new Array();
  51.  
  52. // Capture and ignore script errors
  53.     window.onerror = wwScrErr;
  54. function wwScrErr() {
  55.     return true;
  56. }
  57. function processSpecialReportHandling() {
  58.     return;
  59. }
  60.  
  61. /* Process OnLoad */
  62. function SR_Init() {
  63.     /* Initialize the Calendar */
  64.     top.MainLoaded = true; // Flag that Main is now loaded
  65.     //var dOb = new Date(2001,0,1,0,0,0,0);
  66.     var dOb = new Date();
  67.     baseDow = dOb.getDay();
  68.     baseDay = dOb.getDate();
  69.     baseMonth = dOb.getMonth();
  70.     baseYear = dOb.getFullYear();
  71.  
  72.     Calendar1 = Calendar_init("Calendar1");
  73.     InitRpmCC_AR();
  74.     SR_StartDate.CalObj = Calendar1;
  75.     Es_StopDate.CalObj = Calendar1;
  76.     processSizeChange();
  77.     processExcludeInit();
  78. }
  79.  
  80. /* On Unload tell the Comm control to Disconnect from the Server */
  81. function DiscoRpmCC_ScR() {
  82.     RpmCC_AR.Disconnect();
  83.     if ( Tid != null ) {
  84.         clearTimeout(Tid); // stop timeout routine
  85.     }
  86. }
  87.  
  88. /* Process Click on Enable Report Status Tab or Schedule Report Tab*/
  89. var WSHStatChangedFlag  = true;
  90. function enableReportStatus() {
  91.     if ( iocomplete ) {
  92.          SchedRepTab.style.display="none";
  93.         SchedRepUI.style.display="none";
  94.         RepStatTab.style.display="";
  95.         RepStatUI.style.display="";
  96.         SchedRepUI.SelDate = Calendar1.selDate; // Save SchedRep's Seldate
  97.         resetReportStatus(); 
  98.         Rstatwin.innerHTML = ""; //clear display
  99.         if ( WSHStatChangedFlag ) {
  100.             processWSHLookupReset(); // go lookup current schedule reports
  101.             WSHStatChangedFlag  = false;
  102.         }
  103.         else {
  104.             outputReportsStatusTextBox();
  105.         }
  106.     }
  107. }
  108.  
  109. function resetReportStatus() {
  110.         ButtonState(RsRemoveBut,"1");
  111.         ButtonState(RsEditBut,"1");
  112.         ButtonState(RsStopBut,"1");
  113.         Es_Sdt.style.display = "none";
  114.       Es_calwin.style.display = "none";
  115.       ApCanBut.style.display = "none";
  116.       Es_calwin.CalState = "0"
  117.       Es_StopDate.value = "";
  118. }
  119.  
  120. function enableScheduleReport() {
  121.     RepStatTab.style.display="none";
  122.     RepStatUI.style.display="none";
  123.     SchedRepTab.style.display="";
  124.     SchedRepUI.style.display="";
  125.     RepStatUI.SelDate = Calendar1.selDate; // Save SchedRep's Seldate
  126.     Calendar1.selDate = SchedRepUI.SelDate; // Restore RepStat's Seldate
  127.  
  128.     if ( document.all["calwin"].CalState == "1" ) { // if Calendar opneded
  129.         processCalendarClick(SR_StartDate); // close it
  130.         processCalendarClick(SR_StartDate); // reopen it
  131.     }
  132.     outputDetailsTextBox(); // if open, redisplay details
  133.     getTodayDate();
  134.     if ( AR_RptSel.style.visibility != "hidden" ) {
  135.         AR_RptSel.focus(); 
  136.     }
  137. }
  138.  
  139. /* Initiate Lookup of Currently Scheduled Reports */ 
  140. function processWSHLookupReset() {
  141.     AR_CurSchedRptStoreArr.length = 0;
  142.     SchedRptLupRecCount = 0; // clear Lookup record counter
  143.     if ( RpmCC_AR.WSHLookupName("*") ) {
  144.             RMode = "";
  145.             top.Rstatus.Pstat("Unable to start the SCHEDULED REPORT LOOKUP request",true);
  146.     }
  147.     else {
  148.             RMode = "LookupSchedReport"; // set Mode of operation
  149.             top.Rstatus.Pstat("One moment while SCHEDULED REPORT LOOKUP request completes");
  150.     }
  151. }
  152.  
  153. function processWSHStatusChange(wsid,wsstat) {
  154.     if (RepStatUI.style.display == "") { // if Report Status box displayed
  155.         var k=AR_CurSchedRptStoreArr.length; // length status display
  156.         for ( var i=0; i<k; i+=SchedReportRecLength ) {
  157.             if ( AR_CurSchedRptStoreArr[i] == wsid) { // match ID in store with Status Change event
  158.                 if ( wsstat == SDeleted ) {
  159.                     var idx = i; // index to record to be deleted
  160.                     for (var m = idx+SchedReportRecLength; m < AR_CurSchedRptStoreArr.length; ++m, ++idx) {
  161.                         AR_CurSchedRptStoreArr[idx] = AR_CurSchedRptStoreArr[m];
  162.                     }
  163.                     AR_CurSchedRptStoreArr.length -= SchedReportRecLength;
  164.                 }
  165.                 else if ( AR_CurSchedRptStoreArr[i+4] != wsstat) { // Status different
  166.                     AR_CurSchedRptStoreArr[i+4] = wsstat; // update status
  167.                 }
  168.                 outputReportsStatusTextBox(); // go redisplay
  169.                 break;
  170.             }
  171.         }
  172.         if ( i>=k ) { // if not found, must be new entry
  173.             top.Rstatus.Pstat("Unsolicited Report Status Change received");
  174.             resetReportStatus(); // Relookup and redisplay Report Status
  175.             Rstatwin.innerHTML = ""; //clear display
  176.             processWSHLookupReset(); // go lookup current schedule reports
  177.         }
  178.     }
  179.     else {
  180.         WSHStatChangedFlag  = true;
  181.     }
  182. }
  183.  
  184. /* Process Click on Duration Field */
  185. function processDurationClick() {
  186.     if (  DurState == "0") { // if closed
  187.         if ( SR_Dur.className == "idis" ) {
  188.             return; // ignore open if disabled
  189.        }
  190.         DurState = "1";
  191.         //SR_Dur.style.display = "none";
  192.         document.all.SR_Dur.size = "1";
  193.         Dur_closebutton.style.display = "";
  194.         SR_DurCount.style.display = "";
  195.         SR_DurUnits.style.display = "";
  196.         SR_DurUnits.style.display = "";
  197.         if (SR_DurUnits.style.visibility != "hidden") {
  198.             SR_DurCount.focus();
  199.         }
  200.         if ( SR_Dur.value == "") {        
  201.             CDUnits = 0;  CDCount = 1;
  202.         }
  203.         SR_Dur.value = "";
  204.         SR_Dur.className = "idis";
  205.         SR_DurCount.options[CDCount-1].selected = "selected";
  206.         SR_DurUnits.options[CDUnits].selected = "selected";
  207.     }
  208.     else {
  209.         DurState = "0"; // closed
  210.         CDUnits = SR_DurUnits.selectedIndex;
  211.         CDCount = SR_DurCount.selectedIndex+1;
  212.         //SR_Dur.style.display = "";
  213.         document.all.SR_Dur.size = "12";
  214.         Dur_closebutton.style.display = "none";
  215.         SR_DurCount.style.display = "none";
  216.         SR_DurUnits.style.display = "none";
  217.         var DurVal = " " + CDCount + " " + UTxtArray[CDUnits];
  218.         SR_Dur.value = DurVal;
  219.         SR_Dur.className = "";
  220.     }
  221.     checkEnableSchedButton(); // Enable Schedule Button?
  222. }
  223.  
  224. /* Process Name Change event of current Report selection */
  225. function processReportNameChange() {
  226.     processReportName();
  227.     AR_Desc.value = AR_RptStoreArr[(ReportRecLength * RptSelectIdx)+2];
  228.     LastReportName = AR_RptStoreArr[(ReportRecLength * RptSelectIdx)];
  229.     outputDetailsTextBox(); 
  230. }
  231.  
  232. function processDetailsButton() {
  233.     SpecDTDD.style.display="none";
  234.     SpecDurDD.style.display="none";
  235.     PopUpDetails.style.display = "";
  236.     outputDetailsTextBox(); // output Details for current selected Report
  237. }
  238.  
  239. function processDetailsOKButton() {
  240.     top.Rstatus.Pstat("");
  241.     SpecDTDD.style.display="";
  242.     SpecDurDD.style.display="";
  243.     PopUpDetails.style.display = "none";
  244.     if ( AR_RptSel.style.visibility != "hidden" ) {
  245.         AR_RptSel.focus(); 
  246.     }
  247. }
  248.  
  249.  
  250. var CmpArray = new Array(); // Array for Computer IDs
  251. var CmpArrayIx = 0; // computer Array index
  252. function outputDetailsTextBox() {
  253.         dtb = document.all["detwin"];
  254.         dtb.style.height = "245px";
  255.         dtb.style.width = "540px";
  256.         dtb.style.display = "";
  257.         if ( AR_RptStoreArr.length == 0 )
  258.             return; // exit if none
  259.         SetCursor("wait");
  260.        top.Rstatus.Pstat("One moment please for Computer display");        
  261.  
  262.         /* Format Details for output */
  263.         dtb.innerHTML = ""; // clear details
  264.         var ridx = ReportRecLength * RptSelectIdx; // Index to Store for current Selected Report
  265.        sob = "<center><table border='0' cellpadding='0' cellSpacing='1' width='480'>";
  266.          sob += "<tr><td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Template Name" + "</td>";
  267.         sob += "<td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Template Description" + "</td></tr>";
  268.         var sid = AR_RptStoreArr[ridx+4]; // SA ID
  269.         if ( getSelectSaName_Desc(sid) != "" ) { // determine index to SA Store based on ID
  270.             sob += "<tr><td width='50%' class='optext'>";
  271.             sob += AR_SaStoreArr[CurSaStoreIdx+0] + "</td>"; //name
  272.             sob += "<td width='50%' class='optext'>" + AR_SaStoreArr[CurSaStoreIdx+2] + "</td></tr>"; //description    
  273.         }
  274.         sob += "<tr><td colspan='3' height='10px' width='100%'> </td></tr>";
  275.         sob += "<tr><td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Server/Computer Name" + "</td>";
  276.         sob += "<td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Group Name" + "</td></tr></table></center>";
  277.         CmpArray = AR_RptStoreArr[ridx+5].split(",");
  278.         CmpArrayIx = 0; // initialize index
  279.        dtb.insertAdjacentHTML("beforeEnd",sob);
  280.        Tid = setTimeout("processDtbRow()",1); // delay 1 ms. then process details
  281. }
  282.        
  283. function processDtbRow() {
  284.     Tid = null; // reset
  285.     var CmpNDArray = new Array(); // Array for Name & Description
  286.     GrpID = null;
  287.     GpS = AR_GrpStore;
  288.       sob = "<center><table border='0' cellpadding='0' cellSpacing='1' width='480'>";
  289.     for ( var i=0; i<100 && CmpArrayIx < CmpArray.length; i++ ) {
  290.         CmpNDArray = (getSelectCmpName_Desc(CmpArray[CmpArrayIx++])).split("/");
  291.         if ( CmpNDArray == "" ) {
  292.             continue;
  293.         }
  294.         fgcol = ( AR_CmpStoreArr[CurCmpStoreIdx+6] == "Unknown" ) ? "red" : "infotext";
  295.         sob += "<tr style='color:" + fgcol + "'><td width='50%' title='";
  296.         sob += CmpNDArray[1] + "' class='optext'>" + CmpNDArray[0] + "</td>";
  297.         GrpID = AR_CmpStoreArr[CurCmpStoreIdx+1];
  298.         sob += "<td width='50%' class='optext'>" + getGroupName(GrpID,null,GpS) + "</td></tr>";
  299.    }
  300.    sob += "</table></center>";
  301.    dtb.insertAdjacentHTML("beforeEnd",sob);
  302.    if ( CmpArrayIx < CmpArray.length ) {
  303.         Tid = setTimeout("processDtbRow()",1); // delay 1 ms. then process details
  304.    }
  305.     else {
  306.         dtb.style.overflow = (dtb.scrollHeight >= dtb.clientHeight) ? "scroll" : "";
  307.         top.Rstatus.Pstat("Done");
  308.         SetCursor("auto");
  309.     }
  310. }
  311.  
  312. /* Process the Schedule Button */
  313. function processScheduleButton() {
  314.     /* Close and accept any open selections */
  315.     if (SR_StartTime.TimeState == "1") {
  316.         processTimeClick('SR','SR_StartTime'); // go get StartTime selections if any
  317.     }
  318.     if (DurState == "1") {
  319.         processDurationClick(); // go get Duration selections if any
  320.     }
  321.  
  322.     /* Make sure reuired parameters have been specified */
  323.     if ( SR_StartDate.value == "" ) {
  324.         top.Rstatus.Pstat("Please enter a Start Date",true);
  325.         alert("Please enter a Start Date");
  326.         return;
  327.     }
  328.     if ( SR_StartTime.value == "" ) {
  329.         top.Rstatus.Pstat("Please enter a Start Time",true);
  330.         alert("Please enter a Start Time");
  331.         return;
  332.     }
  333.     if ( SR_Dur.value == "" ) {
  334.         top.Rstatus.Pstat("Please enter a Duration value",true);
  335.         alert("Please enter a Duration value");
  336.         return;
  337.     }
  338.  
  339.     var ridx = ReportRecLength * RptSelectIdx; // Index to Store for current Selected
  340.     Nme = AR_RptStoreArr[ridx]; // Name
  341.     Desc = AR_RptStoreArr[ridx+2]; // Description
  342.     Oid = AR_RptStoreArr[ridx+1]; //Original WS Template ID
  343.     InP = "0"; // In process
  344.     Aid = AR_RptStoreArr[ridx+4];
  345.     Cid = AR_RptStoreArr[ridx+5];   
  346.     Std = Calendar1.getSelDate() + " " + cHrs + ":" + cMins + ":" + cSecs;
  347.     
  348.     /* Compute End Time from Satrt Time + Duration */
  349.     var Dob = new Date(Std); // Date object
  350.     Ems = Dob.getTime(); // Milliseconds since 1/1/70 0:0:0
  351.  
  352.     Ems += (CDCount * UValArray[CDUnits]); //Increment by duration
  353.     Dob.setTime(Ems); // Set End D/T
  354.     Edt = (Dob.getMonth()+1) + "/" + Dob.getDate() + "/" + Dob.getFullYear() + " ";
  355.     Edt += Dob.getHours() + ":" + Dob.getMinutes() + ":" + Dob.getSeconds();
  356.  
  357.     var CDob = new Date(); // Current D/T object
  358.     if ( Ems < CDob.getTime() ) { // if end time < current time
  359.         InP = "2"; // set completed
  360.     }
  361.  
  362.     var ExcludeParams = processExcludeGetParams();
  363.     RMode = "SchedReport"; // set Mode of operation
  364.     if ( RpmCC_AR.WSHAdd(Nme,Desc,Oid,InP,Aid,Cid,Std,Edt,ExcludeParams) ) {
  365.         top.Rstatus.Pstat("Unable to Schedule Report",true);
  366.     }
  367.     else {
  368.         top.Rstatus.Pstat("One moment while ScheduleReport request completes");
  369.     }
  370. }
  371.  
  372. /* Reset Processing after initial and subsequent Report operations */
  373. function processResetButton() {
  374.     RptSelectIdx = 0; // reset index
  375.     /* Need at least 1 record for Reports, SA, Computers and Groups */
  376.     if (RptLupRecCount == 0 || SALupRecCount == 0 || CmpLupRecCount == 0 || GrpLupRecCount == 0) {
  377.        processCommonReset();
  378.         if ( SALupRecCount == 0 || CmpLupRecCount == 0 || GrpLupRecCount == 0 ) {
  379.           sButtonState(RScheduleButton,"1");
  380.         }
  381.         else {
  382.             top.Rstatus.Pstat("No record matches found for Report LOOKUP request",true);
  383.             sButtonState(RScheduleButton,"1");
  384.         }
  385.     }
  386.     else {
  387.         iocomplete = true;
  388.         uirtus.style.cursor="hand";
  389.         processCommonReset();
  390.         
  391.         AR_RptSel.selectedIndex = 0;
  392.           populateInput(0); // set Name 
  393.           
  394.         if ( LastReportName != "" ) {
  395.             for (i=0; i < AR_RptSel.length; ++i) {
  396.                 if ( AR_RptSel.options[i].text == LastReportName ) {
  397.                     AR_RptSel.selectedIndex = i;
  398.                     processReportNameChange();
  399.                     break;
  400.                 }
  401.             }
  402.         }
  403.  
  404.         /* select and focus to 1st name entry */
  405.         AR_RptSel.className = "idis"; 
  406.         AR_RptSel.options[AR_RptSel.selectedIndex].selected = "selected";
  407.         if ( AR_RptSel.style.visibility != "hidden" ) {
  408.             AR_RptSel.focus(); 
  409.         }
  410.     }
  411. }
  412.  
  413. function populateInput(idx) {
  414.     AR_Rpt.value = AR_RptStoreArr[idx+0]; // Synchronize name field with Store name field
  415. }
  416.  
  417. function processCommonReset() {
  418.     /* enable appropriate Report Name fields */
  419.     AR_Rpt.style.display = "none";
  420.     AR_RptSel.style.display = "";
  421.     
  422.     /* Create and Display Start Time dropdown selections */
  423.     CreatTimeDropDowns("SR");
  424.  
  425.     /* Display and Create Duration dropdown selections */
  426.     dct = SR_DurCount;
  427.     dun = SR_DurUnits;
  428.  
  429.     for ( var i=1; i<= 59; i++ ) { // count drop down
  430.         i = ( i < 10 ) ? " "+i : i;
  431.         addElementToSelect(dct," "+i);
  432.     }
  433.     for ( i=0; i< UTxtArray.length; i++ ) { // unit drop down
  434.         addElementToSelect(dun,UTxtArray[i]);
  435.     }
  436.     /* enable and disable appropriate input fields */
  437.     SR_StartDate.className = "";    
  438.     SR_StartTime.className = "";
  439.     SR_Dur.className = "";
  440.     detwin.classFlag = "";
  441. }
  442.  
  443. /* Check if Schedule Button Should Be Enabled */
  444. function checkEnableSchedButton() {
  445.     if (SchedRepUI.style.display == "" ) {
  446.         if ( (SR_StartTime.TimeState == "1" || SR_StartTime.value != "") && (DurState == "1" || SR_Dur.value != "") && (SR_StartDate.value != "") && AR_RptStoreArr.length > 0 ) {
  447.         /* enable button */
  448.             sButtonState(RScheduleButton,"0");    
  449.         }
  450.     }
  451.     else  {
  452.        ButtonState(RsApplyBut,"0");
  453.        ButtonState(RsCancelBut,"0");
  454.     }
  455. }
  456.  
  457. /* Process WSH Add Op Complete */
  458. function processWSHOpComplete() {
  459.     if (RMode == "SchedReport") {
  460.         top.Rstatus.Pstat("Report Scheduled Successfully");
  461.         SR_StartDate.value = "";
  462.         SR_StartTime.value = "";
  463.         SR_Dur.value = "";
  464.         RptSelectIdx = 0; // reset index
  465.         populateInput(0); // set Name 
  466.         /* select and focus to 1st name entry */
  467.         AR_RptSel.className = "idis"; 
  468.         if ( LastReportName != "" ) {
  469.             for (i=0; i < AR_RptSel.length; ++i) {
  470.                 if ( AR_RptSel.options[i].text == LastReportName ) {
  471.                     AR_RptSel.selectedIndex = i;
  472.                     processReportNameChange();
  473.                     break;
  474.                 }
  475.             }
  476.         }
  477.         AR_RptSel.options[AR_RptSel.selectedIndex].selected = "selected";
  478.         if ( AR_RptSel.style.visibility != "hidden" ) {
  479.             AR_RptSel.focus(); 
  480.         }
  481.          Calendar1.selDate = ""; // force Today's date
  482.          sButtonState(RScheduleButton,"1");
  483.         processExcludeInit();
  484.     }
  485.     else if (RMode == "LookupSchedReport") {
  486.         if (SchedRptLupRecCount == 0) { // check if any records found
  487.             top.Rstatus.Pstat("No record matches found for SCHEDULED REPORT LOOKUP request",true);
  488.         }
  489.         else {
  490.             top.Rstatus.Pstat("Request Completed");
  491.         }
  492.         outputReportsStatusTextBox();
  493.     }
  494.     else {
  495.         top.Rstatus.Pstat("Request Completed");
  496.         if ( RMode == "RemoveSchedReport" ) { 
  497.             enableReportStatus();
  498.         }    
  499.         else if (RMode == "StopSchedReport") {
  500.             resetReportStatus();
  501.         }
  502.     }
  503. }
  504.  
  505. function processButClick() {
  506.     var DtArr = new Array;
  507.     switch ( event.srcElement.id ) {
  508.     
  509.    case "RsRemoveBut" : 
  510.        if ( !confirm( "Are you sure you want to Delete the selected Scheduled Report?" ) ) {
  511.            return;
  512.         }
  513.           wshid = AR_CurSchedRptStoreArr[SchedRepSelIdx];
  514.         if ( RpmCC_AR.WSHDelete(wshid) ) {
  515.             RMode = "";
  516.             top.Rstatus.Pstat("Unable to start the SCHEDULED REPORT REMOVE request",true);
  517.         }
  518.         else {
  519.             RMode = "RemoveSchedReport"; // set Mode of operation
  520.             top.Rstatus.Pstat("One moment while SCHEDULED REPORT REMOVE request completes");
  521.         }
  522.       break;
  523.       
  524.    case "RsEditBut" : 
  525.        edit_but = true;
  526.       Es_Sdt.style.display = "";
  527.       Es_calwin.style.display = "";
  528.       ApCanBut.style.display = "";
  529.       ButtonState(RsRemoveBut,"1");
  530.         ButtonState(RsEditBut,"1");
  531.         ButtonState(RsStopBut,"1");
  532.         ButtonState(RsApplyBut,"1");
  533.  
  534.         DtArr = AR_CurSchedRptStoreArr[SchedRepSelIdx+7].split(" "); // Split out Start Date/Time
  535.         DtArr = DtArr[0].split("/"); // Split Start Date
  536.  
  537.         baseDay = DtArr[1]; // Start date
  538.         baseMonth = DtArr[0]-1;
  539.         baseYear = DtArr[2];
  540.     
  541.         DtArr = AR_CurSchedRptStoreArr[SchedRepSelIdx+8].split(" "); // Split out End Date and Time
  542.         Calendar1.selDate = DtArr[0]; // Set to Stop Date
  543.         processCalendarClick(Es_StopDate); 
  544.         et = DtArr[1]; // end Time
  545.         ed = DtArr[0]; // end Date
  546.         DtArr = DtArr[0].split("/"); // separate M/D/Y
  547.         var dOb = new Date(DtArr[2],DtArr[0]-1,DtArr[1]); // Stop date
  548.         dow = dOb.getDay(); //  determine day of week 
  549.         Es_StopDate.value = " " + dowArray[dow] + "  " + ed;
  550.  
  551.         /* Create and Display Start Time dropdown selections */
  552.         CreatTimeDropDowns("Es");
  553.         DtArr = et.split(":");
  554.         cHrs = DtArr[0]; // Stop Time
  555.         cMins = DtArr[1];
  556.         cSecs = DtArr[2];
  557.         CH = (cHrs > 12) ? cHrs-12 : cHrs;
  558.         CH = (CH == 0) ? 12 : CH;
  559.        Es_TimHrs.options[--CH].selected = "selected";
  560.        Es_TimMins.options[cMins].selected = "selected";
  561.        cM = (cHrs > 11 && cHrs < 24) ? 1 : 0;
  562.        Es_M.options[cM].selected = "selected";
  563.       break;
  564.       
  565.    case "RsStopBut" : 
  566.        var Dob = new Date(); // Date object for current D/T
  567.           Edt = (Dob.getMonth()+1) + "/" + Dob.getDate() + "/" + Dob.getFullYear() + " ";
  568.         Edt += Dob.getHours() + ":" + Dob.getMinutes() + ":" + Dob.getSeconds();
  569.         processStopDTUpdate(Edt);
  570.       break;
  571.       
  572.    case "RsApplyBut" :
  573.        edit_but = false;
  574.       cHrs = Es_TimHrs.selectedIndex+1; // get selected option
  575.       cHrs = (cHrs == 12) ? 0 : cHrs; // Hr between 0 and 11
  576.         cMins = Es_TimMins.selectedIndex;
  577.         cSecs = 0;
  578.         if ( (i = Es_M.selectedIndex) == 1) //PM selected
  579.             cHrs += 12; // adjust hours
  580.         DtArr = Es_StopDate.value.split(" ");
  581.         Edt = DtArr[3] + " ";
  582.         Edt += cHrs + ":" + cMins + ":" + cSecs;
  583.        processStopDTUpdate(Edt);
  584.        break;
  585.        
  586.        case "RsCancelBut" :
  587.         processRSClick("row"+SchedRepSelIdx);
  588.        break;
  589.     }
  590. }
  591.  
  592. function processStopTimeChange() {
  593.     checkEnableSchedButton(); // Enable Apply button
  594. }
  595.  
  596. function processStopDTUpdate(Edt) {
  597.     wshid = AR_CurSchedRptStoreArr[SchedRepSelIdx];
  598.     if ( RpmCC_AR.WSHReplaceEndDateTime(wshid,Edt) ) {
  599.         RMode = "";
  600.         top.Rstatus.Pstat("Unable to start the SCHEDULED Monitoring STOP request",true);
  601.     }
  602.     else {
  603.         RMode = "StopSchedReport"; // set Mode of operation
  604.         top.Rstatus.Pstat("One moment while SCHEDULED Monitoring STOP request completes");
  605.         AR_CurSchedRptStoreArr.length = 0;
  606.     }
  607. }
  608.  
  609. var edit_but = false; // In Edit Stop D/T state 
  610. function processRSClick(sxid) {
  611.     var i = 0;
  612.     var sx = "";
  613.     RptObj = Rstatwin; // Report Status Display object
  614.      if ( sxid.charAt(0) == "r" ) {
  615.         sx = sxid.substring(3,sxid.length); // Strip off storage index
  616.         SchedRepSelIdx = eval(sx); 
  617.         if ( cur_sxid != null ) {
  618.             rescol = ((eval(cur_sxid.substring(3,cur_sxid.length))/SchedReportRecLength) % 2 != 0 ) ? "e8e8e8" : "white";
  619.             document.all[cur_sxid].style.backgroundColor = rescol;
  620.             document.all[cur_sxid].style.color = "infotext";
  621.         }
  622.         if ( cur_sxid == sxid ) { // if same line
  623.             ButtonState(RsRemoveBut,"1");
  624.             ButtonState(RsEditBut,"1");
  625.             ButtonState(RsStopBut,"1");
  626.             cur_sxid = null; // reset
  627.         }
  628.         else {
  629.             document.all[sxid].style.backgroundColor = "scrollbar";
  630.             cur_sxid = sxid; // Save Selected Line
  631.             i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] != "1" ) ? "0" : "1";
  632.             ButtonState(RsRemoveBut,i);
  633.             i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] != "2" ) ?     "0" : "1";
  634.             ButtonState(RsEditBut,i);
  635.             i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] == "1" ) ? "0" : "1";
  636.             ButtonState(RsStopBut,i);
  637.         }
  638.           if ( edit_but ) {
  639.               Es_Sdt.style.display = "none";
  640.           Es_calwin.style.display = "none";
  641.           ApCanBut.style.display = "none";
  642.           Es_calwin.CalState = "0"
  643.           Es_StopDate.value = "";
  644.           edit_but = false;
  645.        }        
  646.     }
  647. }
  648.  
  649. var RptCount = 0;
  650. var LineCount = 0;
  651. /* Update Scheduled report Status Box */
  652. function outputReportsStatusTextBox() {
  653.     RptCount = 0;
  654.     LineCount = 0;    
  655.     outputReportsStatusTextBoxContinue();
  656. }
  657. function outputReportsStatusTextBoxContinue() {
  658.     Tid = null;
  659.     var sob = "";
  660.     var i = RptCount;
  661.     var j = LineCount;
  662.     var DtArr = new Array;
  663.     var DeArr = new Array;
  664.     
  665.     if ( RptCount == 0 ) {
  666.         Rstatwin.innerHTML = ""; //clear display
  667.           sob = "<table border='0' cellpadding='0' cellSpacing='1' width='900' id='table'>";
  668.         sob += "<tr><td width='23%' align='center' style='background-color:activeborder' class='optextb'>" + "Report Name" + "</td>";
  669.         sob += "<td width='10%' align='center' style='background-color:activeborder' class='optextb'>" + "Monitor Status" + "</td>";
  670.         sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "Start Date" + "</td>";
  671.         sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "Start Time" + "</td>";
  672.         sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "End Date" + "</td>";
  673.         sob += "<td width='6%' align='center' style='background-color:activeborder' class='optextb'>" + "End Time" + "</td>";
  674.         sob += "<td width='40%' align='center' style='background-color:activeborder' class='optextb'>" + "Description" + "</td></tr>";
  675.     }
  676.     else {
  677.        sob = "<table border='0' cellpadding='0' cellSpacing='1' width='900' id='table"+i+"'>";
  678.     }    
  679.                 
  680.     for ( var loopcount = 0; i<AR_CurSchedRptStoreArr.length && loopcount < 25; i+=SchedReportRecLength) {
  681.         if ( AR_CurSchedRptStoreArr[i+4] == "4" ) 
  682.             continue; // skip Master Scheduled records
  683.             
  684.         sob += "<tr style='cursor:hand' onclick='processRSClick(\"row" + i +"\")' id='row" + i + "'";
  685.        if ( j % 2 != 0 ) {
  686.            sob += " style='background-color:e8e8e8' ";
  687.         }
  688.         sob += "><td width='23%' class='optext'>";
  689.         sob += AR_CurSchedRptStoreArr[i+1] + "</td>";
  690.         sob += "<td width='10%' class='optext'>" + InProcArray[AR_CurSchedRptStoreArr[i+4]] + "</td>";
  691.         
  692.         DtArr = AR_CurSchedRptStoreArr[i+7].split(" "); // Split out Start Date and Time
  693.         DeArr = DtArr[0].split("/"); // Split out m/d/y
  694.         d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
  695.         d += "/" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
  696.         d += "/" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
  697.         sob += "<td width='7%' class='optext'>" + d + "</td>";
  698.         DeArr = DtArr[1].split(":"); // Split out h:m:s
  699.         d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
  700.         d += ":" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
  701.         d += ":" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
  702.         sob += "<td width='7%' class='optext'>" + d + "</td>";
  703.         
  704.         DtArr = AR_CurSchedRptStoreArr[i+8].split(" "); // Split out End Date and Time
  705.         DeArr = DtArr[0].split("/"); // Split out m/d/y
  706.         d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
  707.         d += "/" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
  708.         d += "/" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
  709.         sob += "<td width='7%' class='optext'>" + d + "</td>";
  710.         DeArr = DtArr[1].split(":"); // Split out h:m:s
  711.         d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
  712.         d += ":" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
  713.         d += ":" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
  714.         sob += "<td width='6%' class='optext'>" + d + "</td>";
  715.  
  716.         sob += "<td width='40%' class='optext'>" + AR_CurSchedRptStoreArr[i+2] + "</td></tr>";
  717.         ++j;
  718.         ++loopcount;
  719.    }
  720.    
  721.    if ( j == 0 ) {
  722.          sob += "<tr><td colspan='7' width='*' style='color:red' class='optext'>" + "No Scheduled Monitoring Reports Found" + "</td></tr>";
  723.     }
  724.     sob += "</table>";
  725.     Rstatwin.insertAdjacentHTML("beforeEnd",sob);
  726.     cur_sxid = null; // Current selected line
  727.     RptCount = i;
  728.     LineCount = j;
  729.     if ( i < AR_CurSchedRptStoreArr.length ) { // continue if not done
  730.             Tid = setTimeout("outputReportsStatusTextBoxContinue()",50); // delay 50 ms. then continue           
  731.     }    
  732. }
  733.  
  734. function processWSHOpError() {
  735.     top.Rstatus.Pstat("Error in Schedule/Edit Report request",true);
  736. }
  737.  
  738. function processWSHReplaceErrorNotFound() {
  739.     top.Rstatus.Pstat("Error in Edit Report request, Record Not Found",true);
  740. }
  741.  
  742. /* Process Report OP Complete Event */
  743. function processReportOpComplete() {
  744.     top.Rstatus.Pstat("Request Completed");
  745.     LastReportName = top.banner.RpmCC_Ban.RegGetKey(top.banner.ServerID+"LastReportTouched"); // get last report name            
  746.     
  747.     if (RMode == "LookupReport") {
  748.         if (RptLupRecCount == 0) { // check if any records found
  749.             top.Rstatus.Pstat("No record matches found for Report LOOKUP request",true);
  750.         }
  751.         if ( needSA ) {
  752.             SALupRecCount = 0; // clear Lookup record counter
  753.             if ( RpmCC_AR.SupportAnalysisLookup("","") ) {
  754.                 RMode = "";
  755.                 top.Rstatus.Pstat("Unable to start the ANALYSIS LOOKUP request",true);
  756.             }
  757.             else {
  758.                 RMode = "LookupSA"; // set Mode of operation
  759.                 top.Rstatus.Pstat("One moment while ANALYSIS LOOKUP request completes");
  760.             }
  761.         }
  762.         else {
  763.               processResetButton();
  764.         }
  765.     }
  766. }
  767.  
  768. /* Set initial button state for all buttons */
  769. function initButtonState() {
  770.     sButtonState(RScheduleButton,"1");
  771. }
  772.  
  773. function sButtonState(bObj,bst) {
  774.     bObj.disabled = (bst == "0") ? "" : "disabled";
  775.     //bObj.className = (bst == "0") ? "SBoxButton" : "SBoxButtonD";
  776. }
  777.  
  778. function ButtonState(bObj,bst) {
  779.     bObj.disabled = (bst == "0") ? "" : "disabled";
  780.     //bObj.className = (bst == "0") ? "BoxButton" : "BoxButtonD";
  781. }
  782.  
  783. /* Process WSH Lookup Records */
  784. function processWSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr) {
  785.     if ( InProcFlg == "0" || InProcFlg == "1" ) { // Ignore for the special predefined "Inventory" reports
  786.     // Update Storage
  787.         i = SchedRptLupRecCount * SchedReportRecLength;
  788.         AR_CurSchedRptStoreArr[i+0] = SRid;
  789.         AR_CurSchedRptStoreArr[i+1] = SRptName;
  790.         AR_CurSchedRptStoreArr[i+2] = SRptDesc;
  791.         AR_CurSchedRptStoreArr[i+3] = SR_OID;
  792.         AR_CurSchedRptStoreArr[i+4] = InProcFlg;
  793.         AR_CurSchedRptStoreArr[i+5] = AIA;
  794.         AR_CurSchedRptStoreArr[i+6] = CIA;
  795.         AR_CurSchedRptStoreArr[i+7] = SRptD_T;
  796.         AR_CurSchedRptStoreArr[i+8] = PRptD_T;
  797.         AR_CurSchedRptStoreArr[i+9] = RptEvr;
  798.         ++SchedRptLupRecCount; // bump record received counter
  799.         SchedReportRecLength = 10; // length of a Storage record
  800.     }
  801. }
  802.  
  803. function processSizeChange() {
  804.     //PopUpContext Menu
  805.     bCw = document.body.clientWidth;
  806.    PopUpContextSize(bCw);
  807.    
  808.    PuPLeft = (bCw-400)/2;
  809.    PopUpExclude.style.left = PuPLeft+"px"; 
  810.    PopUpExclude.style.top = "5px"; //PuPTop+"px"; 
  811.    PopUpExclude.style.height = "450px";
  812.    PopUpExclude.style.width = "400px";
  813.    
  814.    PuPLeft = (bCw-560)/2;
  815.    PopUpDetails.style.left = PuPLeft+"px"; 
  816.    PopUpDetails.style.top = "140px"; //PuPTop+"px"; 
  817.    PopUpDetails.style.height = "320px";
  818.    PopUpDetails.style.width = "560px";
  819.    
  820. }
  821.  
  822. function PopUpContextOpen() {
  823.     AR_RptSel.style.visibility = "hidden";
  824.     SR_DurCount.style.visibility = "hidden";
  825.     SR_DurUnits.style.visibility = "hidden";
  826.     SR_TimHrs.style.visibility = "hidden";
  827.     SR_TimMins.style.visibility = "hidden";
  828.     SR_TimSecs.style.visibility = "hidden";
  829.     SR_M.style.visibility = "hidden";
  830. }
  831. function PopUpContextClose() {
  832.     AR_RptSel.style.visibility = "visible";
  833.     SR_DurCount.style.visibility = "visible";
  834.     SR_DurUnits.style.visibility = "visible";
  835.     SR_TimHrs.style.visibility = "visible";
  836.     SR_TimMins.style.visibility = "visible";
  837.     SR_TimSecs.style.visibility = "visible";
  838.     SR_M.style.visibility = "visible";
  839. }
  840.  
  841. // Create new Window and load specified Page
  842. function processViewReportButton() {
  843.     processPopUpSelect(7,false);
  844.     return;
  845. }
  846.  
  847. function processDefineReportButton() {
  848.     processPopUpSelect(5,false);
  849.     return;
  850. }
  851.  
  852. function checkReportCount() {
  853.     if ( RptLupRecCount == 0 ) {
  854.         alert("No Reports found. Go to 'Create CounterWatch Report' and create a report");
  855.     }
  856. }
  857.  
  858. var saveExcludeDiv = "";
  859. function processExcludeButton() {
  860.     AR_RptSel.style.visibility="hidden";
  861.     SpecDT.style.visibility="hidden";
  862.     SpecDur.style.visibility="hidden";
  863.       PopUpExclude.style.display="";
  864.       saveExcludeDiv = ExcludeDiv.innerHTML;
  865. }
  866. function processExcludeCancelButton() {
  867.       ExcludeDiv.innerHTML = saveExcludeDiv;
  868.       processExcludeOKButton();
  869. }
  870. function processExcludeOKButton() {
  871.     top.Rstatus.Pstat("");
  872.     AR_RptSel.style.visibility="visible";
  873.     SpecDT.style.visibility="visible";
  874.     SpecDur.style.visibility="visible";
  875.     PopUpExclude.style.display="none";
  876.     if ( AR_RptSel.style.visibility != "hidden" ) {
  877.         AR_RptSel.focus(); 
  878.     }
  879. }
  880.  
  881. function processExcludeInit() {
  882.     Excl_MTF.checked = "";
  883.     Excl_STS.checked = "";
  884.     Excl_Mon.checked = "";
  885.     Excl_Tue.checked = "";
  886.     Excl_Wed.checked = "";
  887.     Excl_Thu.checked = "";
  888.     Excl_Fri.checked = "";
  889.     Excl_Sat.checked = "";
  890.     Excl_Sun.checked = "";
  891.     processExcludeClick( Excl_MTF );
  892.     processExcludeClick( Excl_STS );
  893.     processExcludeClick( Excl_Mon );
  894.     processExcludeClick( Excl_Tue );
  895.     processExcludeClick( Excl_Wed );
  896.     processExcludeClick( Excl_Thu );
  897.     processExcludeClick( Excl_Fri );
  898.     processExcludeClick( Excl_Sat );
  899.     processExcludeClick( Excl_Sun );
  900. }
  901. function processExcludeClick(EObj) {
  902.     if ( EObj.checked ) {
  903.        document.all[EObj.id+"_ft1"].className = "";    
  904.        document.all[EObj.id+"_ft1"].disabled = "";    
  905.        document.all[EObj.id+"_ft2"].className = "";    
  906.        document.all[EObj.id+"_ft2"].disabled = "";    
  907.        document.all[EObj.id+"_tt1"].className = "";    
  908.        document.all[EObj.id+"_tt1"].disabled = "";    
  909.        document.all[EObj.id+"_tt2"].className = "";    
  910.        document.all[EObj.id+"_tt2"].disabled = "";    
  911.     }
  912.     else {
  913.        document.all[EObj.id+"_ft1"].className = "idis";    
  914.        document.all[EObj.id+"_ft1"].disabled = "disabled";    
  915.        document.all[EObj.id+"_ft2"].className = "idis";    
  916.        document.all[EObj.id+"_ft2"].disabled = "disabled";    
  917.        document.all[EObj.id+"_tt1"].className = "idis";    
  918.        document.all[EObj.id+"_tt1"].disabled = "disabled";    
  919.        document.all[EObj.id+"_tt2"].className = "idis";    
  920.        document.all[EObj.id+"_tt2"].disabled = "disabled";        
  921.     }
  922. }
  923. function processExcludeGetParams() {
  924.     var ExclP = processExcludeGetP( Excl_MTF );
  925.     ExclP += "," + processExcludeGetP( Excl_STS );
  926.     ExclP += "," + processExcludeGetP( Excl_Mon );
  927.     ExclP += "," + processExcludeGetP( Excl_Tue );
  928.     ExclP += "," + processExcludeGetP( Excl_Wed );
  929.     ExclP += "," + processExcludeGetP( Excl_Thu );
  930.     ExclP += "," + processExcludeGetP( Excl_Fri );
  931.     ExclP += "," + processExcludeGetP( Excl_Sat );
  932.     ExclP += "," + processExcludeGetP( Excl_Sun );
  933.  
  934.     return ExclP;
  935. }
  936. function processExcludeGetP(EObj) {
  937.     var ExclP = "";
  938.     if ( EObj.checked ) {
  939.        ExclP = "1,"+document.all[EObj.id+"_ft1"].value;
  940.         ExclP += ","+document.all[EObj.id+"_tt1"].value;
  941.           ExclP += ","+document.all[EObj.id+"_ft2"].value;
  942.        ExclP += ","+document.all[EObj.id+"_tt2"].value;
  943.     }
  944.     else {
  945.         ExclP = "0,,,,";
  946.     }
  947.     return ExclP;    
  948. }
  949.  
  950. //-->
  951. </script>
  952.  
  953. <script LANGUAGE="JAVASCRIPT" SRC="js/Calendar.js" PURPOSE="COMPONENT" CLASSNAME="com.netobjects.Calendar"></script>
  954. <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
  955. <script LANGUAGE="JavaScript" src="js/ReportAllFunc.js"></script>
  956. <script LANGUAGE="JavaScript" src="js/GroupFunc.js"></script>
  957. <script LANGUAGE="JavaScript" src="js/ButtonFunc.js"></script>
  958. <script LANGUAGE="JavaScript" src="js/CalendarTimeFunc.js"></script>
  959.  
  960. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="Connected()">
  961. <!--
  962. processRepConnectConfirmed();
  963. //-->
  964. </script> 
  965. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="Disconnected()">
  966. <!--
  967. top.Rstatus.Pstat("Disconnected",true);
  968. if ( Tid != null ) {
  969.     clearTimeout(Tid); // stop timeout routine
  970. }
  971. Tid = setTimeout("processRepReconnect()",10000); // Delay 10 secs then try reconnnect
  972. //-->
  973. </script>
  974.  
  975. <script
  976. LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="DBChanged(cdata)">
  977. <!--
  978. var warr = new Array();
  979. warr = cdata.split("~"); // parse the event data
  980. // process only if Computer or Group Table change
  981. if ( (warr[0] == "2" || warr[0] == "5") && ignoreDBChangeEvent == false ) {
  982.     top.banner.processDBChangeNotifyEvent(cdata);
  983. }
  984. ignoreDBChangeEvent = false;
  985. //-->
  986. </script>
  987.  
  988. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr)">
  989. <!--
  990. processWSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr);
  991. //-->
  992. </script>
  993. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHStatusChange(wsid,wsstat)">
  994. <!--
  995. processWSHStatusChange(wsid,wsstat);
  996. //-->
  997. </script> 
  998. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHOpComplete()">
  999. <!--
  1000. processWSHOpComplete();
  1001. //-->
  1002. </script>
  1003. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHOpError()">
  1004. <!--
  1005. processWSHOpError();
  1006. //-->
  1007. </script> 
  1008. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHReplaceErrorNotFound()">
  1009. <!--
  1010. processWSHReplaceErrorNotFound();
  1011. //-->
  1012. </script> 
  1013. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsOpComplete()">
  1014. <!--
  1015. processReportOpComplete();
  1016. //-->
  1017. </script>
  1018. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsOpError()">
  1019. <!--
  1020. processReportOpError();
  1021. //-->
  1022. </script> 
  1023. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv)">
  1024. <!--
  1025. processReportLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv);
  1026. //-->
  1027. </script>
  1028.  
  1029. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisLookupRecord(Aid,ANme,ADesc,OCXNme,CntArr,OSverArr)">
  1030. <!--
  1031. processSupportAnalysisLookupRecord(Aid,ANme,ADesc,OCXNme,CntArr,OSverArr);
  1032. //-->
  1033. </script>
  1034. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisOpComplete()">
  1035. <!--
  1036. processSupportAnalysisOpComplete();
  1037. //-->
  1038. </script>
  1039. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisOpError()">
  1040. <!--
  1041. processSupportAnalysisOpError();
  1042. //-->
  1043. </script> 
  1044. <script FOR="RpmCC_AR" EVENT="ComputerLookupRecord(Cid,Gid,Sid,Nme,Desc,Pswd,OSVer,Addr,Port)">
  1045. <!--
  1046. processComputerLookupRecord(Cid,Gid,Nme,Desc,OSVer);
  1047. //-->
  1048. </script>
  1049.  
  1050. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="ComputerOpComplete()">
  1051. <!--
  1052. processComputerOpComplete();
  1053. //-->
  1054. </script>
  1055. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="ComputerOpError()">
  1056. <!--
  1057. processComputerOpError();
  1058. //-->
  1059. </script> 
  1060. <script FOR="RpmCC_AR" EVENT="GroupLookupRecord(Gid,GNme,GDesc)">
  1061. <!--
  1062. processGroupLookupRecord(Gid,GNme,GDesc,null,AR_GrpStore);
  1063. //-->
  1064. </script> 
  1065. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="GroupOpComplete()">
  1066. <!--
  1067. processGroupOpComplete();
  1068. //-->
  1069. </script>
  1070. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="GroupOpError()">
  1071. <!--
  1072. processGroupOpError();
  1073. //-->
  1074. </script> 
  1075. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="StartCommunication()">
  1076. <!--
  1077. top.banner.processStartComm();
  1078. //-->
  1079. </script> 
  1080. <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="StopCommunication()">
  1081. <!--
  1082. top.banner.processStopComm();
  1083. //-->
  1084. </script> 
  1085.  
  1086. <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
  1087.  
  1088. <object ID="RpmCC_AR" NAME="RpmCC_AR" WIDTH="14" HEIGHT="1" style="display:none" CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80" CODEBASE="controls/RPMComm.cab#version=5,2,0,0">
  1089.   <param name="_Version" value="65536">
  1090.   <param name="_ExtentX" value="2646">
  1091.   <param name="_ExtentY" value="1341">
  1092.   <param name="_StockProps" value="0">
  1093. </object>
  1094.  
  1095.   <!--------------PopUp to Display Report Details -------------------->
  1096.    <div id="PopUpDetails" class="PopUpBox" style="display:none; left:150; top:150; ">
  1097.              
  1098.      <div id="DetailsDiv" style="display:one"><center>
  1099.         <center><table width="100%" align="center" border="0" cellspacing="3" cellpadding="3" >
  1100.          <tr><td height="23" style="font-weight:800; font-size:10pt; background-color:graytext; color:captiontext" colspan="2" align="center">Report Details</td></tr>
  1101.            <!--<tr><td height="4" class="inputlabel" colspan="2" align="center"> </td></tr>-->
  1102.       </table></center>  
  1103.          
  1104.      <table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
  1105.      <tr>
  1106.         <td>
  1107.         <center><div class="DetailsTextBox" Name="detwin" ID="detwin"></div></center></td>
  1108.         </tr>
  1109.         </table>        
  1110.      <center><table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
  1111.         <tr><td colspan="2" align="center" width ="100%"><button id="OKButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processDetailsOKButton()" ><img src="images/apply.gif" align="absmiddle" height="16" width="16">OK </button></td></tr>
  1112.            <!--<tr><td height="5" class="inputlabel" colspan="2" align="center"> </td></tr>-->
  1113.  
  1114.       </table></center>
  1115.    </div>
  1116.    </div>
  1117.  <!----------------------------End of Pop-Up for Report Details ------------------------------------->  
  1118.  
  1119.  
  1120.   <!-- ------------PopUp to Prompt for Report Parameters -------------------->
  1121.    <div id="PopUpExclude" class="PopUpBox" style="display:none; left:150; top:150; ">
  1122.              
  1123.      <div id="ExcludeDiv">
  1124.         <center><table width="100%" align="center" border="0" cellspacing="3" cellpadding="3" >
  1125.          <tr><td height="23" style="font-weight:800; font-size:10pt; background-color:graytext; color:captiontext" colspan="2" align="center">Specify Exclude Time Periods</td></tr>
  1126.            <!--<tr><td height="4" class="inputlabel" colspan="2" align="center"> </td></tr>-->
  1127.       </table></center>  
  1128.          
  1129.      <table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
  1130.              <tr><td width="100%" colspan="3" class="inputlabel" align="center" >Specify Optional Time periods to Exclude from the Report:</td></tr>
  1131.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Mon thru Fri: </td><td width="5%" align="left"><input id="Excl_MTF" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_MTF_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_MTF_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_MTF_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_MTF_tt2" maxLength="10" ></td></tr>
  1132.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sat thru Sun: </td><td width="5%" align="left"><input id="Excl_STS" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_STS_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_STS_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_STS_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_STS_tt2" maxLength="10" ></td></tr>
  1133.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">and/or, </td><td width="5%"></td><td width="65%"></td></tr>
  1134.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Mon: </td><td width="5%" align="left"><input id="Excl_Mon" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Mon_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Mon_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Mon_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Mon_tt2" maxLength="10" ></td></tr>
  1135.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Tue: </td><td width="5%" align="left"><input id="Excl_Tue" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Tue_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Tue_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Tue_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Tue_tt2" maxLength="10" ></td></tr>
  1136.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Wed: </td><td width="5%" align="left"><input id="Excl_Wed" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Wed_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Wed_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Wed_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Wed_tt2" maxLength="10" ></td></tr>
  1137.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Thu: </td><td width="5%" align="left"><input id="Excl_Thu" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Thu_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Thu_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Thu_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Thu_tt2" maxLength="10" ></td></tr>
  1138.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Fri: </td><td width="5%" align="left"><input id="Excl_Fri" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Fri_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Fri_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Fri_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Fri_tt2" maxLength="10" ></td></tr>
  1139.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sat: </td><td width="5%" align="left"><input id="Excl_Sat" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Sat_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Sat_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Sat_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Sat_tt2" maxLength="10" ></td></tr>
  1140.              <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sun: </td><td width="5%" align="left"><input id="Excl_Sun" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Sun_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Sun_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Sun_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Sun_tt2" maxLength="10" ></td></tr>
  1141.         </table>
  1142.  
  1143.         
  1144.      <center><table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
  1145.         <tr><td colspan="2" align="center" width ="100%"><button id="OKButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processExcludeOKButton()" ><img src="images/apply.gif" align="absmiddle" height="16" width="16">OK </button>  <button id="CancelButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processExcludeCancelButton()"><img src="images/reset.gif" align="absmiddle" height="15" width="15"> Cancel  </button></td></tr>
  1146.            <!--<tr><td height="5" class="inputlabel" colspan="2" align="center"> </td></tr>-->
  1147.  
  1148.       </table></center>
  1149.    </div>
  1150.    </div>
  1151.  <!----------------------------End of Pop-Up for Exclude Time ------------------------------------->  
  1152.  
  1153. <center>
  1154. <div class="GTabBox" border="0">
  1155. <div align="left" style="clear:both">
  1156. <table border="1"  borderColor="activeborder" align="left">
  1157.     <tr><td borderColorDark="graytext" borderColorLight="white" height="25" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16"> Schedule CounterWatch Monitoring </td></tr>
  1158. </table><br><br>
  1159. </div>
  1160.  
  1161. <div id="SchedRepTab"><table border="0" ><tr><td style="height:5px; width:460px" ></td></tr></table><table border="0" cellspacing="0"><tr><td valign="center" class="UILeftTabSel">Schedule</td><td valign="center" id="uirtus" class="UIRightTabUnsel" onclick="enableReportStatus()">Status</td><td align="right" style="height:30px; width:421px; border-bottom: solid thin white"><button   title="Show Run/Analyze & View Reports in separate window" style="width:26px; height:25px; " onClick="processViewReportButton()"><img src="images/sViewReports.gif" align="absmiddle" height="16" width="16"></button>    </td></tr></table></div>
  1162.  
  1163. <div id="RepStatTab" style="display:none"><table border="0" ><tr><td style="height:5px; width:500px" ></td></tr></table><table border="0" cellspacing="0"><tr><td valign="center" class="UILeftTabUnsel" onclick="enableScheduleReport()">Schedule</td><td valign="center" class="UIRightTabSel" >Status</td><td align="right" style="height:30px; width:421px; border-bottom: solid thin white"><button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Show Run/Analyze & View Reports in separate window" style="width:26px; height:25px; " onClick="processViewReportButton()"><img src="images/sViewReports.gif" align="absmiddle" height="16" width="16"></button>    </td></tr></table></div>
  1164.  
  1165. <div id="SchedRepUI" class="Lbr_border" style="width:500px; height:375px; border-left:solid thin white; border-bottom:solid thin graytext; border-right:solid thin graytext" SelDate="">
  1166. <table class="fldset" border="0" width="492" cellspacing="3" cellpadding="2" height="240">
  1167.   <tr>
  1168.     <td width="548" height="165"><div align="left"><table border="0" width="579" cellspacing="3" cellpadding="2" height="160">
  1169.       <tr>
  1170.         <td width="222" align="right" class="inputlabel" height="35">Report Name:</td>
  1171.         <td width="565" height="30"><input TYPE="text" SIZE="40" style="font-weight: 500; display: none" NAME="AR_Rpt" maxLength="40" onkeypress="processKeyPress();" onkeydown="processKeyDown();">
  1172.         <select ONCHANGE="processReportNameChange()" onclick="checkReportCount()" SIZE="1" NAME="AR_RptSel" class="idis" style="width: 228pt; font-weight: 500"></select>
  1173.         <select SIZE="1" NAME="AR_GrpStore" style="display: none"></select>
  1174.         </td>
  1175.        </tr>
  1176.        <tr>
  1177.         <td width="222" align="right" class="inputlabel" height="35">Report Description:</td>
  1178.         <td width="565" height="30"><input TYPE="text" SIZE="40" class="idis" style="font-weight: 500;" NAME="AR_Desc" maxLength="40" onkeypress="processKeyPress();" onkeydown="processKeyDown();">   <button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:105px; height:22px" onClick="processDetailsButton()" ><img src="images/sAdminReports.gif" align="absmiddle" height="16" width="16">Report Details</button></td>
  1179.        </tr>
  1180.        <tr id="SpecDT">
  1181.           <td width="222" align="right" class="inputlabel" height="35">Start Date/Time:</td>
  1182.           <td><input TYPE="text" SIZE="18" style="font-weight: 500" NAME="SR_StartDate" class="idis" CalObj="" calendar="calwin" onClick="this.blur(); processCalendarClick(this)" style="cursor:hand"> <B>/</B> <input TYPE="text" SIZE="10" style="font-weight: 500" NAME="SR_StartTime" onClick="this.blur(); processTimeClick('SR','SR_StartTime')" style="cursor:hand" TimeState="0" class="idis">
  1183.             <span id="SpecDTDD">
  1184.             <img Name="SR_closebutton" align="absmiddle" src="images/leftbuttont.gif" onClick="processTimeClick('SR','SR_StartTime')" style="cursor:hand; display:none" WIDTH="25" HEIGHT="24">
  1185.             <select SIZE="1" NAME="SR_TimHrs" style="display: none"></select>
  1186.             <Big><B ID="SR_TempColon" style="display: none">:</B></Big>
  1187.         <select SIZE="1" NAME="SR_TimMins" style="display: none"></select>
  1188.         <select SIZE="1" NAME="SR_TimSecs" style="display: none"></select>
  1189.         <select SIZE="1" NAME="SR_M" style="display: none"></select></td>
  1190.         </span>
  1191.       </tr>
  1192.         <tr>
  1193.         <td width="222" align="right" height="2"></td>
  1194.         <td><div class="CalendarTextBox" Name="calwin" ID="calwin" CalState="0" style="display: none"></div></td>
  1195.       </tr>
  1196.      <tr id="SpecDur">
  1197.           <td width="222" align="right" class="inputlabel" height="35">Duration:</td>
  1198.           <td><input TYPE="text" SIZE="12" NAME="SR_Dur" style="cursor:hand" onClick="this.blur(); processDurationClick()" class="idis" >
  1199.             <span id="SpecDurDD">
  1200.             <img Name="Dur_closebutton" align="absmiddle" src="images/leftbuttont.gif" onClick="processDurationClick()" style="cursor:hand; display:none" WIDTH="25" HEIGHT="24">
  1201.           <select SIZE="1" NAME="SR_DurCount" style="display:none"></select>
  1202.         <select SIZE="1" NAME="SR_DurUnits" style="display:none"></select>
  1203.         </span>
  1204.          <button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:155px; height:22px" onClick="processExcludeButton()" ><img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16">Exclude Time Periods</button>
  1205.         </td>
  1206.       </tr>
  1207.   <tr><td  colspan="2" height="7"></td></tr>
  1208.      </table>
  1209.     </div></td>
  1210.   </tr>
  1211.   <tr>
  1212.     <td width="605" align="right" height="25"><p align="center"><button id="RScheduleButton" onclick="processScheduleButton()" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:155px; height:28px" disabled><img src="images/schedule.gif" align="absmiddle" height="14" width="16"> Schedule Monitoring</button>   </td>
  1213.   </tr>
  1214.   <tr><td height="5"> </td></tr>
  1215. </table>
  1216. </div>
  1217.  
  1218. <div id="RepStatUI" class="Lbr_border" style="display:none; width:500px; height:375px; border-left:solid thin white; border-bottom:solid thin graytext; border-right:solid thin graytext" SelDate="">
  1219. <table class="fldset" border="0" width="492" cellspacing="3" cellpadding="2" height="240">
  1220.  
  1221.   <tr>
  1222.     <td width="548" height="150"><div align="center">
  1223.     
  1224.         <table border="0" width="579" cellspacing="3" cellpadding="2" height="77">
  1225.           <tr>
  1226.             <td width="1%"></td><td width="*" align="center" class="inputlabel">Status of Previously Scheduled Monitoring      
  1227.               </td>
  1228.           </tr>
  1229.           
  1230.           <tr><td width="1%"></td><td width="*">
  1231.              <div align="center" class="RptStatusTextBox" Name="Rstattwin" ID="Rstatwin" classFlag ="idis"></div>
  1232.            </td>
  1233.          </tr>   
  1234.  
  1235.           <tr><td width="1%"></td><td width="*">
  1236.              <div align="center" Name="RStatFunc" ID="RStatFunc" classFlag ="idis" ><center><button id="RsRemoveBut" onclick='processButClick()' style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/DelImg.gif" align="absmiddle" height="14" width="14">Remove</button>  <button id="RsStopBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/Cancel.gif" align="absmiddle" height="15" width="15">Stop Now</button>  <button id="RsEditBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/EditStop.gif" align="absmiddle" height="16" width="15">Edit Stop </button></center>
  1237.             </div>
  1238.            </td>
  1239.            </tr>
  1240.    
  1241.            <tr><td colspan="2" align="center" >
  1242.              <div id="Es_Sdt" style="display:none">
  1243.           <br><center class="inputlabel">Edit Stop Date/Time</center><input TYPE="text" SIZE="16" style="font-weight: 500" NAME="Es_StopDate" onClick="this.blur(); processCalendarClick(this)" style="cursor:hand" CalObj="" calendar="Es_calwin"> <B>/</B> 
  1244.             <select SIZE="1" NAME="Es_TimHrs" onchange="processStopTimeChange()"></select>
  1245.             <Big><B ID="Es_TempColon" >:</B></Big>
  1246.         <select SIZE="1" NAME="Es_TimMins" onchange="processStopTimeChange()"></select>
  1247.         <select SIZE="1" NAME="Es_M" onchange="processStopTimeChange()"></select>
  1248.         </div>        
  1249.             </td>
  1250.          </tr>
  1251.          
  1252.           <tr>
  1253.         <td colspan="2" align="center"><div class="CalendarTextBox" Name="Es_calwin" ID="Es_calwin" CalState="0" style="display:none"></div>
  1254.             </td>
  1255.         </tr>
  1256.         
  1257.       <tr>
  1258.         <td colspan="2" align="center" id="ApCanBut" style="display:none"><button id="RsApplyBut" onclick='processButClick()' style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/apply.gif" align="absmiddle" height="16" width="16">Apply</button>  <button id="RsCancelBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand"><img src="images/Cancel.gif" align="absmiddle" height="16" width="17">Cancel</button></td>
  1259.       </tr>
  1260.       </table>
  1261.      </td>
  1262.     </tr>
  1263.   </table>
  1264.   </div>
  1265.   
  1266. <div style="height:5px; width:460px"><table height="5px" border="0" ><tr><td> </td></tr></table></div>
  1267.  
  1268.  
  1269. </div>
  1270. </center>
  1271.  
  1272. </body>
  1273. </html>
  1274.